package launcher;

public class RegexTester {

	/**
	 * @param args
	 */
	public static void main(String[] args) 
	{
		String str = "CONC\"EPTS . TO:TAL HOST;ILITY . B(AA)TH DEP'ENDS?ON!50,000PARTY MEMBERS SCATTERED";
		String []tokens = str.split("[\\s.,;:\\-\\(\\)\\!\\?'\"]|(?<=[\\d])(?=[a-zA-Z])");
		System.out.println("# tokens: "+tokens.length);
		for(String s : tokens)
		{
			if(!s.matches("^([\\s.,;:\\-\\(\\)\\!\\?'\"])+$") && s.length() > 0)
			{
				System.out.println(s);
			}
		}
	}

}
